import {createSlice} from '@reduxjs/toolkit';

const slice = createSlice({
    name: "portfolioList",
    initialState: {
        portfolioList: []
    },
    reducers: {
        getList(state, action: PayloadAction<string>){
            state.portfolioList = action.payload
        }
    }
})

export const { getList} = slice.actions;
export default slice.reducer;